package org.streets.workflow.model.net;

import java.util.ArrayList;
import java.util.List;

import org.streets.workflow.model.WFProcess;

/**
 * 同步路由器
 *
 */
@SuppressWarnings("serial")
public class WFSyncRouter extends WFNode {
	/**
	 * 输入转移的列表
	 */
    List<WFTransition> enteringTransitions = new ArrayList<WFTransition>();
    
    /**
     * 输出转移的列表
     */
    List<WFTransition> leavingTransitions = new ArrayList<WFTransition>();

    /**
     * 输入循环的列表
     */
    List<WFLoop> enteringLoops = new ArrayList<WFLoop>();
    
    /**
     * 输出循环的列表
     */
    List<WFLoop> leavingLoops = new ArrayList<WFLoop>();

    public WFSyncRouter() {
    }

    public WFSyncRouter(WFProcess workflowProcess, String name) {
        super(workflowProcess, name);
    }

    /**
     * 返回输入Transition集合
     * @return
     */
    public List<WFTransition> getEnteringTransitions() {
        return enteringTransitions;
    }

    /**
     * 返回输出transition集合
     * @return
     */
    public List<WFTransition> getLeavingTransitions() {
        return leavingTransitions;
    }

    /**
     * 返回输入Loop集合
     * @return 
     */
    public List<WFLoop> getEnteringLoops(){
        return this.enteringLoops;
    }

    /**
     * 返回输出Loop集合
     * @return
     */
    public List<WFLoop> getLeavingLoops(){
        return this.leavingLoops;
    }
}
